package com.cf.web.excel;

/**
 * cf-game-ExcelDataFormatter
 *
 * @author <a href="2428922347@qq.com">Zhu mingming</a>
 * @info
 * @since 2018/4/20 12:17
 */

import org.apache.poi.ss.usermodel.Cell;

import java.lang.reflect.Field;

/**
 * Excel数据导入导出格式化<br>
 * 举例:<br>
 * 数据导出， {lock,{0:正常，1:锁定}}<br>
 * 数据导入,{lock,{正常:0，锁定:1}}
 *
 * @author Goofy <a href="http://www.xdemo.org">http://www.xdemo.org</a>
 */
public interface ExcelDataFormatter {

    void outPutFormate(Cell cell, Object data);

    void inPutConvert(Object original, String originalKey, Object target, Field targetField) throws Exception;

}